// test 9.57
const express = require('express');
const app = express();
const PORT = process.env.PORT || 3000;

// GET /
app.get('/', (req, res) => {
  res.send('Hello, World!');
});

// GET /health
app.get('/health', (req, res) => {
  res.json({ status: 'ok' });
});

// 启动服务
app.listen(PORT, () => {
  console.log(`Server is running at http://localhost:${PORT}`);
});
